import request from "@/utils/request";

// 列表
export function getReginList(query) {
  return request({
    url: "/prod-api/system/sysregin/queryList",
    method: "get",
    params: query,
  });
}

// 搜索市或者区
export function getReginCityArea(query) {
  return request({
    url: "/prod-api/system/sysregin/queryCode",
    method: "get",
    params: query,
  });
}

// 新增
export function addRegin(data) {
  return request({
    url: "/prod-api/system/sysregin/add",
    method: "post",
    data: data,
  });
}

// 修改
export function updateRegin(data) {
  return request({
    url: "/prod-api/system/sysregin/edit",
    method: "post",
    data: data,
  });
}

// 删除
export function deteleRegin({ uid, type }) {
  return request({
    url: `/prod-api/system/sysregin/del/${uid}/${type}`,
    method: "put",
  });
}
